export function toUrl(url, n = 1) {
  if (n == 1) {
    // 保留当前页面
    uni.navigateTo({
      url: url,
      animationType: "pop-in",
      animationDuration: 300,
    });
  } else if (n == 2) {
    // 不保留
    uni.redirectTo({
      url: url,
    });
  }
}
